package cn.clx.ymcc.feign;


import cn.clx.ymcc.domain.User;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFactory implements FallbackFactory<UserFeign> {


    @Override
    public UserFeign create(Throwable throwable) {
        return new UserFeign() {
            @Override
            public User getByPhone(String phone) {
                return new User();
            }
        };
    }
}
